package com.bwie.pojo.vo;

import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.io.Serializable;

@Data
public class UserVo implements Serializable {
    /**
     *  用户Id
     */
    private Integer userId;

    /**
     *  经度
     */
    @DecimalMin(value = "-180.0", message = "经度不能小于 -180")
    @DecimalMax(value = "180.0", message = "经度不能大于 180")
    private Double longitude;

    /**
     *  纬度
     */
    @DecimalMin(value = "-90.0", message = "纬度不能小于 -90")
    @DecimalMax(value = "90.0", message = "纬度不能大于 90")
    private Double latitude;
}
